home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 12 / Cream of the Crop 12 (Part II) / Cream of the Crop 12 (Part II).iso / OS2 / VD08BIN.ZIP / usr / include / util / namedpipe.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-13  |  1.5 KB  |  59 lines

  1. /* -------------------------------------------------------------------
  2.  
  3.     Project:
  4.  
  5.     Objective-C interface file for the class namedpipe
  6.  
  7.     COPYRIGHT (C), 1995, Thomas Baier
  8.     ALL RIGHTS RESERVED.
  9.  
  10.     Date:                Rev:
  11.     1995-Aug-16            ___
  12.  
  13.  */
  14.  
  15. /*====================================================================
  16.                      Interface of class namedpipe                     
  17. ====================================================================*/
  18. #ifndef _NAMEDPIPE_H_
  19. #define _NAMEDPIPE_H_
  20.  
  21. #include <objc/os2.h>
  22. #include <objc/Object.h>
  23.  
  24. @interface NamedPipe : Object
  25. {
  26.   HPIPE          handle;
  27.   char          *pipeName;
  28.   unsigned long  openMode;
  29.   unsigned long  pipeMode;
  30.   unsigned long  bufferSize;
  31. }
  32.  
  33. /* -------------------------- Initialize -------------------------- */
  34. -init;
  35. -create;
  36. -open;
  37.  
  38. /* ----------------------------- Free ----------------------------- */
  39. -free;
  40.  
  41. /* ----------- Methods for access to Instance Variables ----------- */
  42. -setPipeName: (const char *) aName;
  43. -(const char *) pipeName;
  44. -setOpenMode: (unsigned long) aMode;
  45. -setPipeMode: (unsigned long) aMode;
  46. -setBufferSize: (unsigned long) aSize;
  47.  
  48. /* ------------------------ Public methods ------------------------ */
  49. -writeBlock: (void *) block size: (unsigned long) aSize;
  50. -writeString: (char *) aString;
  51. -readBlock: (void *) block size: (unsigned long) aSize;
  52. /* ----------------------- Private methods ------------------------ */
  53.  
  54. /* ---------------------- Archiving methods ----------------------- */
  55.  
  56. @end
  57.  
  58. #endif
  59.